package com.nisure.mappers;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.nisure.annotation.DataSourceAnnotation;
import com.nisure.entities.FormCustomerEntity;

@Mapper
public interface FormCustomerMapper {
	int findMaxId();
	List<FormCustomerEntity> selectNeedHandleData(Map<String, Object> map);
	int insertFormCustomer(FormCustomerEntity formCustomerEntity);
	void insertFormCustomers(List<FormCustomerEntity> list);
	void updateFormCustomer(FormCustomerEntity formCustomerEntity);
	void deleteFormCustomer(Map<String, Object> map);
	void updateFormCustomers(List<FormCustomerEntity> list);
	List<FormCustomerEntity> selectByParams(Map<String, Object> map);
	Integer selectByParamsTotal(Map<String, Object> map);
	List<FormCustomerEntity> selectNeedData(Map<String, Object> map);
	
	//调用存储过程
	Integer getNeedHandleData(Map<String, Object> map);
	//调用存储过程并返回结果集
	List<FormCustomerEntity> selectNeedDataList(Map<String, Object> map);
}
